package com.yangbo.service;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Administrator
 * @Date 2018-10-15 10:46
 */
@Component
public class UserServiceFallBack implements UserService{


    @Override
    public Map<String, Object> getUser(String name) {
        Map<String,Object> result = new HashMap<String,Object>();
        result.put("msg","error");
        result.put("code",500);
        result.put("name",name);
        return result;
    }
}
